//
//  TKYQualityConductController.m
//  StationHouseHelper
//
//  Created by apple on 2018/7/10.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYQualityConductController.h"
#import "TKYSafetyCell.h"
#import "TKYTreatHandelDetitleController.h"
@interface TKYQualityConductController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic, strong)BaseTabelView *tabelV;

@end

@implementation TKYQualityConductController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setUpUI];
    // Do any additional setup after loading the view.
}

#pragma mark-- 设置界面
- (void)setUpUI{
    [self.view addSubview:self.tabelV];
}

#pragma mark -- UITableViewDataSource, UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 50;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return  kHeightScale *110;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    TKYSafetyCell *cell = [tableView dequeueReusableCellWithIdentifier:KSafetyCellID];

    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    TKYTreatHandelDetitleController *treatHandelVC = [TKYTreatHandelDetitleController new];
    [self.navigationController pushViewController:treatHandelVC animated:YES];
}

- (BaseTabelView *)tabelV{
    if (_tabelV == nil) {
        _tabelV = [[BaseTabelView alloc]initWithFrame:CGRectMake(0, kHeightScale *35, kScreenWidth,kScreenHeight -MyNavBarHeight -kHeightScale *35 - kHeightScale *200  ) style:UITableViewStylePlain];
        _tabelV.dataSource = self;
        _tabelV.delegate = self;
        [_tabelV registerClass:[TKYSafetyCell class] forCellReuseIdentifier:KSafetyCellID];
        _tabelV.mj_header = [TKYRefreshHeader headerWithRefreshingBlock:^{
            
            
        }];
        _tabelV.mj_footer = [TKYRefreshFooter footerWithRefreshingBlock:^{
            
        }];
    }
    return _tabelV;
}

@end
